<?php

if($dbprocess == 'saveuser' ){
	// Cosas para crear nuevo proyecto
	$data=array();
	$data['login'] = $_POST['ulogin'];
	$data['password'] = md5( $_POST['upassword'] );
	$data['name'] = $_POST['name'];
	$data['date'] = date("Y-m-d");
	$data['type'] = $_POST['type'];
	
	
	$r=createUser($data);
	
	if($r){
		$id=mysql_insert_id();
		header("Location:index.php?v=edituser&id=$id");
		exit;
	}else{
		header("Location:index.php");
	}
	exit;
}

if($dbprocess == 'updateuser' ){
	
	
}

if($dbprocess == 'setpermissions' ){
	
	
}


?>